let api = "https://api.lumayun.com/api"; //
let index = "http://upload.ilucode.com/index";
let art = 'https://article.ilucode.com/api'

// console.log('api');
import Yeepass from '@/tools/pass';
Yeepass.getDomain();
let domain = decodeURIComponent(Yeepass.getCookie("domain"));
console.log(domain);
console.log(typeof domain);
if (domain != null && domain != "null" && domain != undefined && domain) {
  api = decodeURIComponent(Yeepass.getCookie("domain")) + 'api';
}
console.log(api);

export default {
  UserLogin: api + "/Login/login", //用户登录
  login_jump: api + "/Login/login_jump ", //账号密码登录-通过平台跳转
  UserRegister: api + "/Login/register", //注册会员
  UserForgotPwd: api + "/Login/forgotPwd", //忘记密码
  Sms_code: api + "/Sms/code", //获取验证码
  Appparser_getAppInfo: api + "/Appparser/getAppInfo", //处理接收的文件
  Appparser_getIcon: api + "/Appparser/getIcon", //获取icon
  // Uploadfile_uploadbd: api+'/Uploadfile/uploadbd', //上传APP文件
  Appupload_uploadData: api + "/Appupload/uploadData", //提交APP数据
  Application_uploadsInfo: api + "/Application/uploadsInfo", //上传
  Application_lists: api + "/Application/lists", //我的应用列表
  Application_delete: api + "/Application/delete", //删除APP
  Application_getHBList: api + "/Application/getHBList", //获取可合并APP列表
  Application_hbApp: api + "/Application/hbApp", //APP 提交合并
  Application_unhbApp: api + "/Application/unhbApp", //APP 提交合并分解
  Supersignature_lists: api + "/Supersignature/lists", //我的应用列表
  Supersignature_delete: api + "/Supersignature/delete", //删除APP
  Supersignature_list_detail: api + "/Supersignature/list_detail", //下载详情
  Application_detail: api + "/Application/detail", //APP详情
  Supersignature_detail: api + "/Supersignature/detail", //APP详情
  Application_downlist: api + "/Application/downlist", //下载明细
  Application_settingData: api + "/Application/settingData", //设置App信息
  Payment: api + "/Price/pay", //支付
  Price_payindex: api + "/Price/payIndex", //价格信息
  payCompute: api + "/Price/payCompute", //支付价格
  Price_showWxPayPage: api + "/Price/showWxPayPage", //微信支付界面数据获取
  Price_checkOrder: api + "/Price/checkOrder", //查询订单信息
  Supersignature_managecode: api + "/Supersignature/managecode", //授权码列表
  Supersignature_p8: api + "/Supersignature/p8", //P8开发者列表
  UserMsg: api + "/User/userinfo", //用户信息
  ResetUserMsg: api + "/User/profile", //修改会员个人信息
  UserOrder: api + "/User/orderList", //我的订单
  SubmitPeopleId: api + "/User/submitAuth_path ", //实名制认证
  Supersignature_addP8: api + "/Supersignature/addP8", //添加P8开发者
  PlistCreate: api + "/Tool/plistCreate", //plist文件在线制作
  p12check: api + "/Tool/p12_check", //p12文件检测
  ipacheck: api + "/Tool/app_check", //ipa文件检测
  selfhelp: api + "/Tool/ipaSign", //自助签名
  agentInfo: api + "/User/agentInfo", //我的代理
  giveNum: api + "/User/giveNum", //我的代理-赠送下级次数
  addUser: api + "/User/addUser", //代理商添加账号
  submitAgentInfo: api + "/User/submitAgentInfo ", //代理商添加账号
  Application_settingIconData: index + "/upfile/uploadfile/settingIconData", //上传图标
  payIndexSuper: api + "/Price/payIndexSuper", //超级签名套餐购买
  priceList: api + "/Nosign/priceList", //免签价格
  lists: api + "/Nosign/lists", //免签列表
  create: api + "/Nosign/create", //生成免签APP/编辑已生成的免签
  mcSave: api + '/Nosign/mcSave', //免签上传mobileconfig
  appHtml: api + "/Nosign/downHtmlByID", //生成app.html,
  priceList: api + '/Nosign/priceList', //免签价格
  lists: api + '/Nosign/lists', //免签列表
  create: api + '/Nosign/create', //生成免签APP/编辑已生成的免签
  appHtml: api + '/Nosign/downHtmlByID', //生成app.html,
  customLink_list: api + '/Application/customLink_list', //合并列表
  customLink_addOrEdit: api + '/Application/customLink_addOrEdit', //自定义合并-新增、修改
  getpolicy: api + "/Oss/getpolicy", //阿里云上传请求密钥
  userinfo_level: api + '/User/userinfo_level', //会员
  searchDevices: api + '/Supersignature/searchDevices', //P8可用数量刷新
  applist: api + '/Package/applist', //打包应用列表
  addApp: api + '/Package/addApp', //新建应用
  appDelete: api + '/Package/appDelete', //删除应用
  payAddApp: api + '/Package/payAddApp', //支付
  appDetailInfo: api + '/Package/appDetailInfo', //应用详情
  saveAppDetailInfo: api + '/Package/saveAppDetailInfo', //修改保存应用详情
  createAppInfo: api + '/Package/createAppInfo', //生成安装包-读取信息
  createApp: api + '/Package/createApp', //生成安装包-提交生成
  createAppStatus: api + '/Package/createAppStatus', //生成安装包-查看生成状态（通过timer轮询）
  sendToApplication: api + '/Package/sendToApplication', //发布应用

  articleListShow: art + '/Index/articleListShow', //文章列表-已发布

  //新闻类别
  articleClassList: api + '/Article/classesList',
  articleClassAddOrUpdate: api + '/Article/classesAddOrUpdate',
  //新闻资讯
  articleList: api + '/Article/articleList',
  articleAddOrUpdate: api + '/Article/articleAddOrUpdate',
  articleDetail: api + '/Article/articleDetail',
  //消息系统
  getInformation: api + '/user/newMessage',
  getInformationList: api + '/user/myMessage',
};
